package kr.co.sdsway2.service;

import kr.co.sdsway2.dao.RemoconDAO;
import kr.co.sdsway2.vo.AvatarVO;

public class RemoconService {
	RemoconDAO dao = new RemoconDAO();

	public boolean isAvatarExist(String avatarId) {
		boolean isExist = false;
		AvatarVO vo = dao.selectAvatarByPk(avatarId);
		if(vo!=null){
			isExist = true;
		}
		return isExist;
	}

	
	public void updatePosition(String avatarId, String direction,
			String distance) {
		dao.updateAvatarPosition(avatarId,direction,distance);
	}


	public AvatarVO getAvatarPosition(String avatarId) {
		return dao.selectAvatarByPk(avatarId);
	}
	
}
